package com.yjd.bi.report.model;

import com.yjd.comm.base.model.Model;

/**
 * <b>description</b>：业务库数据变更记录模型<br>
 * <b>time</b>：2016-04-08 17:13:56 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public class DataChangeRecordModel extends Model {

	/**
	 * @Fields serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	/*
	 * 编号，主键，自动增长
	 */
	private java.lang.Long id;
	/*
	 * 所属数据库编码，来源于bi数据库yjd_bi_database_info表code
	 */
	private java.lang.String database_code;
	/*
	 * 表名
	 */
	private java.lang.String table_name;
	/*
	 * 表主键值
	 */
	private java.lang.String ref_id;
	/*
	 * 操作类型,1:增加记录，2:删除记录，3:更新记录，默认为1
	 */
	private java.lang.Integer type;
	/*
	 * 创建时间
	 */
	private java.lang.Long create_time;
	/*
	 * 状态，0:待处理，1:处理成，2:处理失败
	 */
	private java.lang.Integer status;
	/*
	 * 实际处理时间
	 */
	private java.lang.Long actual_dispose_time;
	/*
	 * 版本号，默认为0，每次更新加1
	 */
	private java.lang.Long version;

	public DataChangeRecordModel() {
	}

	public DataChangeRecordModel(Long id, String database_code,
			String table_name, String ref_id, Integer type, Long create_time,
			Integer status, Long actual_dispose_time, Long version) {
		this.id = id;
		this.database_code = database_code;
		this.table_name = table_name;
		this.ref_id = ref_id;
		this.type = type;
		this.create_time = create_time;
		this.status = status;
		this.actual_dispose_time = actual_dispose_time;
		this.version = version;
	}

	public java.lang.Long getId() {
		return id;
	}

	public void setId(java.lang.Long id) {
		this.id = id;
	}

	public java.lang.String getDatabase_code() {
		return database_code;
	}

	public void setDatabase_code(java.lang.String database_code) {
		this.database_code = database_code;
	}

	public java.lang.String getTable_name() {
		return table_name;
	}

	public void setTable_name(java.lang.String table_name) {
		this.table_name = table_name;
	}

	public java.lang.String getRef_id() {
		return ref_id;
	}

	public void setRef_id(java.lang.String ref_id) {
		this.ref_id = ref_id;
	}

	public java.lang.Integer getType() {
		return type;
	}

	public void setType(java.lang.Integer type) {
		this.type = type;
	}

	public java.lang.Long getCreate_time() {
		return create_time;
	}

	public void setCreate_time(java.lang.Long create_time) {
		this.create_time = create_time;
	}

	public java.lang.Integer getStatus() {
		return status;
	}

	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}

	public java.lang.Long getActual_dispose_time() {
		return actual_dispose_time;
	}

	public void setActual_dispose_time(java.lang.Long actual_dispose_time) {
		this.actual_dispose_time = actual_dispose_time;
	}

	public java.lang.Long getVersion() {
		return version;
	}

	public void setVersion(java.lang.Long version) {
		this.version = version;
	}

}
